{extend name="public:layout" /}

{block name="title"}
	<title>{:site('siteName')}-账户明细</title>
{/block}

{block name="css"}
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/user.css">
	<link rel="stylesheet" href="__STATIC__/share/css/share.css" type="text/css" />
{/block}

{block name="content"}
	<div class="layui-main">
		<div class="user-main">
			<div class="user-left">
				{include file="public:user" index="6" /}
			</div>
			<div class="user-right">
				<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title">
						<li class="{if $Request.get.type}layui-this{/if}">
							<a href="/account/record?type=1">收入明细</a>
						</li>
						<li class="{if !$Request.get.type == 1}layui-this{/if}">
							<a href="/account/record?type=0">支出明细</a>
						</li>
					</ul>
					<div class="layui-tab-content">
						<table class="table">
						    <thead>
						        <tr>
						            <th>时间</th>
						            <th>类型</th>
						            <th>原因</th>
						            <th>金额</th>
						        </tr>
						    </thead>
						    <tbody>
								{volist name="record" id="v"}
							        <tr>
							            <td>{:date('Y-m-d H:i',$v['time'])}</td>
							            <td>{$currency[$v['currency']]}</td>
							            <td>{$v['message']}</td>
							            {if $Request.get.type}
							            	<td style="color: #5FB878;">+{$v['money']}</td>
							            {else /}
											<td style="color: #FF5722;">{$v['money']}</td>
							            {/if}
							        </tr>
								{/volist}
						    </tbody>
						</table>
						<div class="page">
							{$record->render()}
						</div>
					</div>
				</div> 
			</div>
		</div>
	</div>
{/block}

{block name="script"}
	<script type="text/javascript">
		
	</script>
{/block}